
const mixin = {
    data() {
        return {
            // 控制对话框的显示与隐藏
            editDialogVisible: false,
            addDialogVisible: false
        }
    },
    methods: {
        // 监听对话框的关闭事件
        addDialogClosed(formName='addFormRef') {
            this.$refs[formName].resetFields();
            this.addDialogVisible = false
        },
        editDialogClosed(formName='editFormRef') {
            this.$refs[formName].resetFields();
            this.editDialogVisible = false
            
        },
    }
}
export default mixin